<?php



require_once 'init.php';


$page = Page::get('events');

$smarty->assign('page',$page);


$smarty->assign('events',
query2arrays("SELECT IFNULL(code_url,id) as id, name, DATE_FORMAT(dt,'%d.%m.%Y') as dt, image, short_descr FROM events ORDER BY events.dt DESC"));


show(
	
'events', 
	
$page->name(), 
	
Pages::getPath($page->id()), 
	
$page->title(), 
	
$page->keywords(), 
	
$page->descr()
);



?>